VistaDB 6
VistaDB.Provider Namespace / VistaDBDataAdapter Class / Fill Method / Fill(DataTable[],Int32,Int32,IDbCommand,CommandBehavior) Method
The System.Data.DataTable objects to fill from the data source.
The zero-based record number to start with.
The maximum number of records to retrieve.
The System.Data.IDbCommand executed to fill the System.Data.DataTable objects.
One of the System.Data.CommandBehavior values.


In This Topic
    Fill(DataTable[],Int32,Int32,IDbCommand,CommandBehavior) Method
    In This Topic
    Adds or refreshes rows in a specified range in the System.Data.DataSet to match those in the data source using the System.Data.DataSet and System.Data.DataTable names.
    Syntax
    'Declaration
     
    
    Protected Overloads Function Fill( _
       ByVal dataTables() As System.Data.DataTable, _
       ByVal startRecord As System.Integer, _
       ByVal maxRecords As System.Integer, _
       ByVal command As System.Data.IDbCommand, _
       ByVal behavior As System.Data.CommandBehavior _
    ) As System.Integer
    'Usage
     
    
    Dim instance As VistaDBDataAdapter
    Dim dataTables() As System.Data.DataTable
    Dim startRecord As System.Integer
    Dim maxRecords As System.Integer
    Dim command As System.Data.IDbCommand
    Dim behavior As System.Data.CommandBehavior
    Dim value As System.Integer
     
    value = instance.Fill(dataTables, startRecord, maxRecords, command, behavior)
    protected System.int Fill( 
       System.Data.DataTable[] dataTables,
       System.int startRecord,
       System.int maxRecords,
       System.Data.IDbCommand command,
       System.Data.CommandBehavior behavior
    )

    Parameters

    dataTables
    The System.Data.DataTable objects to fill from the data source.
    startRecord
    The zero-based record number to start with.
    maxRecords
    The maximum number of records to retrieve.
    command
    The System.Data.IDbCommand executed to fill the System.Data.DataTable objects.
    behavior
    One of the System.Data.CommandBehavior values.

    Return Value

    The number of rows added to or refreshed in the data tables.
    Exceptions
    ExceptionDescription
    The System.Data.DataSet is invalid.
    The source table is invalid. -or- The connection is invalid.
    The connection could not be found.
    The startRecord parameter is less than 0. -or- The maxRecords parameter is less than 0.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also